package com.example.weixinpayment.service;

import com.example.weixinpayment.entity.RefundInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface RefundInfoService extends IService<RefundInfo> {

    /**
     * @description: 根据订单编号创建退款单
     * @param: orderNo
     * @param: reason
     * @return: com.example.weixinpayment.entity.RefundInfo
     * @author: 刘助政
     * @date: 2022/1/12 14:37
     * */
    RefundInfo createRefundByOrderNo(String orderNo, String reason);

    /**
     * @description: 更新退款单
     * @param: content
     * @return: void
     * @author: 刘助政
     * @date: 2022/1/12 14:55
     * */
    void updateRefund(String content);

    /**
     * @description: 找出申请退款超过minutes分钟并且未成功的退款单
     * @param: minutes
     * @return: java.util.List<com.example.weixinpayment.entity.RefundInfo>
     * @author: 刘助政
     * @date: 2022/1/12 15:49
     * */
    List<RefundInfo> getNoRefundOrderByDuration(int minutes);
}
